﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class t_Attachment : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("t_Attachment", "ID");

        //流程名
        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("t_Attachment", "Process");

        //实例号
        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("t_Attachment", "Incident");

        //步骤名
        [Column]
        public string Step { get { return _Step; } set { _Step = value; EntityState.FieldChange("Step"); } }
        private string _Step;
        public static FieldInfo step = new FieldInfo("t_Attachment", "Step");

        //用户名
        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo username = new FieldInfo("t_Attachment", "UserName");

        //用户全名
        [Column]
        public string UserFullName { get { return _UserFullName; } set { _UserFullName = value; EntityState.FieldChange("UserFullName"); } }
        private string _UserFullName;
        public static FieldInfo userfullname = new FieldInfo("t_Attachment", "UserFullName");

        //所属部门
        [Column]
        public string Department { get { return _Department; } set { _Department = value; EntityState.FieldChange("Department"); } }
        private string _Department;
        public static FieldInfo department = new FieldInfo("t_Attachment", "Department");

        //文件名
        [Column]
        public string FileName { get { return _FileName; } set { _FileName = value; EntityState.FieldChange("FileName"); } }
        private string _FileName;
        public static FieldInfo fileName = new FieldInfo("t_Attachment", "FileName");

        //类型
        [Column]
        public string FileClass { get { return _FileClass; } set { _FileClass = value; EntityState.FieldChange("FileClass"); } }
        private string _FileClass;
        public static FieldInfo fileClass = new FieldInfo("t_Attachment", "FileClass");

        //日期
        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("t_Attachment", "Time");

        //状态
        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("t_Attachment", "Status");

        //文件物理路径
        [Column]
        public string FilePath { get { return _FilePath; } set { _FilePath = value; EntityState.FieldChange("FilePath"); } }
        private string _FilePath;
        public static FieldInfo filePath = new FieldInfo("t_Attachment", "FilePath");

        public string EncryptFileName { get; set; }
    }
}
